//
//  SEGExpressDetailTableViewCell.m
//  SEGPropertyBaseService
//
//  Created by Clavis on 2019/4/11.
//  Copyright © 2019 Clavis. All rights reserved.
//

#import "SEGExpressDetailTableViewCell.h"

@implementation SEGExpressDetailTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self setupUI];
    }
    return self;
}

- (void)setupUI {
    self.nameLabel = ({
        UILabel *label = [[UILabel alloc] init];
        [self.contentView addSubview:label];
        label.textColor = kColor_2;
        label.font = kFont_15;
        label;
    });
    [self.nameLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(20);
        make.top.bottom.mas_equalTo(0);
        make.width.mas_equalTo(65);
    }];
    
    self.valueLabel = ({
        UILabel *label = [[UILabel alloc] init];
        [self.contentView addSubview:label];
        label.font = kFont_15;
        label.numberOfLines = 0;
        label;
    });
    [self.valueLabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.mas_equalTo(self.nameLabel.mas_right).offset(5);
        make.top.mas_equalTo(8);
        make.bottom.mas_equalTo(-8);
        make.right.mas_equalTo(-20);
        make.height.mas_greaterThanOrEqualTo(28);
    }];
    
    self.accessoryType = UITableViewCellAccessoryNone;
    self.selectionStyle = UITableViewCellSelectionStyleNone;
}

@end
